package android.cmpe451.group7.util;

import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;

public class GlobalVariables {

	public static final String urlEncode = "ISO-8859-1";

	// HTTP timeout variables
	public static final int TIMEOUT_CONNECTION = 3000;
	public static final int TIMEOUT_SOCKET = 5000;

	public static HttpParams httpParameters = new BasicHttpParams();
	static {
		// Set the timeout in milliseconds until a connection is established.
		// The default value is zero, that means the timeout is not used.
		HttpConnectionParams.setConnectionTimeout(httpParameters,
				TIMEOUT_CONNECTION);
		// Set the default socket timeout (SO_TIMEOUT)
		// in milliseconds which is the timeout for waiting for data.
		HttpConnectionParams.setSoTimeout(httpParameters, TIMEOUT_SOCKET);
	}

	public static final String IMAGES = "place_image_list";
	public static final String IMAGE_POSITION = "place_image_position";

	public static final String WS = "http://titan.cmpe.boun.edu.tr:8086/ourcity-ws/webservice/";
	public static final String login_URL = WS
			+ "user/login?email=%s&password=%s";
	public static String create_Place_URL = WS
			+ "place/create?placeName=%s&country=%s&city=%s&tags=%s&latitude=%s&longitude=%s&userID=%s&password=%s";
	public static final String request_Map_URL = WS + "place/search?all";
	public static String like_Action_URL = WS
			+ "place/likePlace?placeID=%s&userID=%s&password=%s";
	public static String add_comments_URL = WS
			+ "place/addComment?placeID=%s&userID=%s&password=%s&comment=%s";
	public static String register_URL = WS
			+ "user/register?name=%s&surname=%s&email=%s&password=%s";
	public static String search_URL = WS
			+ "place/search?city=%s&country=%s&placeName=%s&tags=%s";
	public static String get_comments_URL = WS + "user/getComments?userID=%s";
	public static String get_likedPlaces_URL = WS + "user/getLikedPlaces?userID=%s";
	public static String get_badges_URL = WS + "user/getBadges?userID=%s";
	public static String get_image_id = WS+"getMultimedia?id=%s";
	public static String get_cities = WS+"recommendation/completeCity?country=%s&city=%s";
	public static String get_tags = WS+"recommendation/completeTag?tag=%s";
	
}
